Ext.define('qjtravel.view.ImgView', {
    extend: 'Ext.Panel',
    xtype: 'imgView',
    config: {

        items: [
            {
                xtype: 'titlebar',
                title: '拍照',
                docked: 'top',
                inline: true,
                items: [
                    {
                        xtype: 'button',
                        id: 'back',
                        text: '取消',
                        listeners: {
                            tap: function (pro) {
                                window.localStorage.removeItem("homeClick");
                                Ext.Viewport.remove(this.up('imgView'), true);
                            }
                        }
                    },
                    {xtype: 'spacer'},
                    {
                        xtype: 'button',
                        align: 'right',
                        id: 'imgUpLoadSubBtn',
                        text: '确定',
                        listeners:{

                        }
                    }
                ]
            },
            {
                xtype:"panel",
                cls:"tempanel",
                style:"width:100%;height:100%",
                items:[
                    {
                        xtype:"textfield",
                        style:"width:85%;margin:10px auto;border:1px solid #ccc;border-radius:10px;",
                        id:"imgCaption",
                        placeHolder: '请输入照片描述,长度不小于两个字',
                        required: false
                    },
                    {
                        xtype:"img",
                        id: 'imgShow',
                        cls:"imgUpLoadClass",
                        required: false
                    }
                ]


            }
        ]
    }
});
